using System.Collections.Generic;
using UnityEngine;

[CreateAssetMenu(fileName = "TargetAllEnemy-获得这个棋子的所有敌方", menuName = "Skill/Target/TargetAllEnemy-获得这个棋子的所有敌方")]
public class EnemyAllTarget : TargetSelectorBase
{
    public override List<Chess> SelectTargets(Chess chess, GameEvent e)
    {
        var list = new List<Chess>();
        var chessList = ChessManager.GetInstance().chessList;
        foreach (var c in chessList)
        {
            if (c.GetChessSide() != chess.GetChessSide())
                list.Add(c);
        }
        return list;
    }
}